<?php
class Rulemanager_Data_Deleterule implements Rulemanager_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "DELETE FROM company_rules WHERE id='".$variables['get']['name']."';";
        return $this->core_controller_dataoperation->main($variables);
    }
}
